package com.csi.juegoweb.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import com.csi.juegoweb.dao.NivelDAO;
import com.csi.juegoweb.domain.Nivel;
import com.csi.juegoweb.service.NivelService;

@Repository("nivelService")
public class NivelServiceImpl implements NivelService {

	@Autowired
	private NivelDAO nivelDAO;

	@Override
	public List<Nivel> getNiveles() {
		// TODO Auto-generated method stub
		return nivelDAO.getNiveles();
	}

	@Override
	public void eliminar(Integer conivel) {
		// TODO Auto-generated method stub
		nivelDAO.eliminar(conivel);
	}

	@Override
	public void crear(Nivel nivel) {
		nivelDAO.crear(nivel);

	}

}
